home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8530 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: gsusgi1.gsu.edu!not-for-mail
  2. From: matmrlx@gsusgi1.gsu.edu (Michael R. Lauer)
  3. Newsgroups: comp.lang.c
  4. Subject: ports
  5. Date: 4 Mar 1996 08:45:52 -0500
  6. Organization: Georgia State University
  7. Message-ID: <4hes6g$2fp@gsusgi1.gsu.edu>
  8. NNTP-Posting-Host: gsusgi1.gsu.edu
  9. Summary: controlling port setup?
  10. Keywords: unix, c, ports
  11. X-Newsreader: NN version 6.5.0 #3 (NOV)
  12.  
  13. I have a program running on SCO UNIX and AIX that dials the modem and sends
  14. a bunch of messages. It works fine for days and hundreds of messages, then
  15. `for no apparent reason' the port goes `sour'. By that I mean the simple
  16. fd = open(acu, O_RDWR | O_NONBLOCK) fails with errno == 9. The cure is
  17. to kill my program, enable(penable) then disable(pdisable) the port, chmod
  18. 6777 the port, and start the program back up again and it runs fine for
  19. days or weeks before it happens again. I've got to be able to recover from
  20. this, and it seems simple enough, but all I can think of doing is kludgy
  21. systems calls to replicate the process outlined above. 
  22.  
  23. Any ideas? If you flame me about this not being a specific C question, 
  24. please include in your invective the specific newsgroup you think I should
  25. look at...
  26.